package com.poetize.plus.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.poetize.plus.entity.dto.TimeLineDTO;
import com.poetize.plus.entity.dto.page.TimeLinePageDTO;
import com.poetize.plus.entity.po.TimeLine;
import com.poetize.plus.entity.vo.TimeLineVO;
import com.poetize.plus.entity.vo.page.TimeLinePageVO;

/**
 * @author zuosy
 * @created 2024/5/13 14:21
 */
public interface TimeLineService extends IService<TimeLine> {

    /**
     * 分页数据
     * @param timeLinePageDTO
     * @return
     */
    Page<TimeLinePageVO> timeLinePage(TimeLinePageDTO timeLinePageDTO);

    /**
     * 新增时间线
     * @param timeLineDTO
     * @return
     */
    Boolean addTimeLine(TimeLineDTO timeLineDTO);

    /**
     * 详情
     * @param id
     * @return
     */
    TimeLineVO queryById(Long id);

    /**
     * 修改
     * @param timeLineDTO
     * @return
     */
    Boolean updateTimeLine(TimeLineDTO timeLineDTO);

    /**
     * 展示系统分页数据
     * @param timeLinePageDTO
     * @return
     */
    Page<TimeLinePageVO> getPage(TimeLinePageDTO timeLinePageDTO);
}
